package com.cstz.enums;


public enum EnumFileDataType {
    WORK_LOG("work_log", "工作日志"),
    WORK_PLAN("work_plan", "工作计划"),
    RESOURCE("resource", "工作计划"),
    POLICY("policy", "工作计划");

    private String desc;
    private String name;

    private EnumFileDataType( String name,String desc){
        this.desc = desc;
        this.name = name;
    }

    

    public String getDesc() {
		return desc;
	}



	public void setDesc(String desc) {
		this.desc = desc;
	}



	public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public static String fmtDesc(String name){
    	if(name==null){
    		return "";
    	}
    	
    	EnumFileDataType[] arr = EnumFileDataType.values();
    	for(EnumFileDataType t : arr){
    		if(name.equals(t.getName())){
    			return t.getDesc();
    		}
    	}
    	
    	return "";
    }
}
